          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
                <th class="table-check"><input type="checkbox" /></th>
                <!--{foreach($view_fields as $key=>$val)}-->
                  <!--{if (isset($val['notinlist']))}-->
                    <!--{continue;}-->
                  <!--{/if}-->          
                  <!--{if ($val['type'] !='textarea')}-->
                  <th class="table-<!--{$key}-->"><!--{$val['name']}--></th>
                  <!--{/if}-->
                <!--{/foreach}-->
                <th class="table-set">操作</th>
              </tr>
          	</thead>
          	<tbody>
            <!--{foreach($view_list as $k=>$v)}-->
            <tr>
              <td><input type="checkbox" name='<!--{$table_key}-->' value="<!--{$v[$table_key]}-->" /></td>
              <!--{foreach($view_fields as $key=>$val)}-->
                  <!--{if (isset($val['notinlist']))}-->
                    <!--{continue;}-->
                  <!--{/if}-->
                  <td class="">
                  <!--{if ($val['type'] =='text')}-->
                       <!--{$v[$key]}-->
                  <!--{elseif ($val['type'] =='select')}-->
                    <!--{if (isset($select_fields[$key]))}-->
                      <!--{$select_fields[$key][$v[$key]]}-->
                    <!--{/if}-->
                  <!--{elseif ($val['type'] =='image')}-->
                      <img src="<!--{WEB_PATH}--><!--{$v[$key]}-->" width="<!--{$val['width']}-->">
                  <!--{else}-->    
                      <!--{$v[$key]}-->
                  <!--{/if}-->
                  </td>
              <!--{/foreach}-->
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <a href="<!--{$curd_url['u']}-->&<!--{$table_key}-->=<!--{$v[$table_key]}-->" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</a>
                    <a  data-id="<!--{$v[$table_key]}-->" class="ajax-delete am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</a>
                  </div>
                </div>
              </td>
            </tr>
            <!--{/foreach}-->
          </tbody>
        </table>
        <div class="am-cf">         
    			  <div class="am-fr">
    			   <!--{$page_html}-->
    			  </div>
			  </div>

        <div class="am-modal am-modal-confirm" tabindex="-1" id="delete-confirm">
          <div class="am-modal-dialog">
            <div class="am-modal-hd">WXProgrammer</div>
            <div class="am-modal-bd">
              你，确定要删除这条记录吗？
            </div>
            <div class="am-modal-footer">
              <span class="am-modal-btn" data-am-modal-cancel>取消</span>
              <span class="am-modal-btn" data-am-modal-confirm>确定</span>
            </div>
          </div>
        </div>
        <script type="text/javascript">
          $(function() {
            $('.ajax-delete'). on('click', function() {
                $('#delete-confirm').modal({
                  relatedTarget: this,
                  onConfirm: function(options) {
                    var $button = $(this.relatedTarget);
                    var id = $button.length ? $button.data('id') : 0;
                    $.ajax({
                        type:'post',
                        url:"<!--{$curd_url['d']}-->",
                        data:{'<!--{$table_key}-->':id},
                        async:false,
                        dataType:'json',
                        success:function(data){
                          if(data.status == 0){
                             alert(data.message); 
                             window.location.reload();
                          }else{
                            alert(data.message);
                          }

                        },
                        error:function(){

                        }
                     });
                  },
                  // closeOnConfirm: false,
                  onCancel: function() {
                 
                  }
                });
              });
          });
        </script>        